<nav class="contents">

	<h2><?php echo t('Contents') ?></h2>

	<?php if ($content_types) : ?>
		<ul>
			<?php foreach ($content_types as $content_type) : ?>
				<li>
					<?php if ($content_type['selected']) : ?>
						<strong>
							<a href="<?php echo $content_type['url'] ?>">
								<?php echo t($content_type['title']) ?>
							</a>
						</strong>
					<?php else : ?>
						<a href="<?php echo $content_type['url'] ?>">
							<?php echo t($content_type['title']) ?>
						</a>
					<?php endif ?>
				</li>
			<?php endforeach ?>
		</ul>
	<?php else : ?>
		<p><?php echo t('You have not added any content types yet.') ?></p>
	<?php endif ?>

	<form method="post" action="">

		<p>
			<label for="admin-navigation-title"><?php echo t('Add new content type') ?></label><br/>
			<input type="text" name="title" id="admin-navigation-title" placeholder="<?php echo t('ie. "News"') ?>"/> 
			<input type="hidden" name="add_content_type" value="1"/>
			<input type="submit" value="Go"/>
		</p>

	</form>

</nav>

<nav class="tags">

	<h2><?php echo t('Tags') ?></h2>

	<?php if ($content_types) : ?>
		<ul>
			<?php foreach ($content_types as $content_type) : ?>
				<li>
					<a href="<?php echo url('AdminTags', array('content_types_id' => $content_type['content_types_id'])) ?>">
						<?php echo t('For %0', array($content_type['title'])) ?>
					</a>
				</li>
			<?php endforeach ?>
		</ul>
	<?php else : ?>
		<p><?php echo t('You have to add a content type before you can add tags.') ?></p>
	<?php endif ?>

</nav>
